<template>
  <div class="card">
    <el-card class="box-card">
      <template #header>
        <div class="card-header">
          <!-- 头部 -->
          <slot name="head" ></slot>
        </div>
      </template>
      <div class="text item container">
        <!-- 身体 -->
        <slot name="container"></slot>
      </div>
    </el-card>
  </div>
</template>

<script>
export default {};
</script>

<style lang="less" scoped>
.card {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 2px 3px;
}
.box-card {
  width: 100%;
  height: 100%;
}
// 卡片超出y滚动
:deep(.el-card__body) {
  height: 100%;
  overflow: hidden;
  overflow-y: scroll;
}
// 隐藏滚动条
:deep(.el-card__body::-webkit-scrollbar) {
  display: none;
}
/* 去除element-plus自带属性 */
:deep(.el-form .el-form-item) {
  margin-bottom: 0px;
  margin-right: 25px;
}
//表格表头颜色
:deep(.el-table th) {
  background-color: #f2f2f2;
} 
//表格内容居中
:deep(.el-table .cell) {
  text-align: center;
}
:deep(.el-table__fixed-right){
      right: 0px !important;
 }
// 表格内的按钮
:deep(.el-table .table_btns) {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  .el-button {
    box-sizing: border-box;
    width: 56px;
    height: 28px;
    text-align: center;
    line-height: 28px;
    padding: 0px 3px 0px 3px;
  }
}
// 批量操作按钮
:deep(.batch_btns) {
  box-sizing: border-box;
  height: 30px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
</style>